const basePath = 'https://cnodejs.org/api/v1'

/**
 * cnodejs api interface
 */
const apiObj = {
  getTopic: basePath + '/topics',
  getTopicInfo: basePath + '/topic/',
  checkUser: basePath + '/accesstoken',
  getUserInfo: basePath + '/user/',
  createTopic: basePath + '/topics',
  replyTopic: basePath + '/topic/',
  agreeTopic: basePath + '/reply/',
  updateTopic: basePath + '/topics/update'
}

export default apiObj